using System;
using System.Collections.Generic;
using System.Text;
using System.Data;
using Microsoft.AceEngineering.SPM.SPMDataLayer;
using Microsoft.AceEngineering.SPM.SPMCustomDataEntity;

namespace Microsoft.AceEngineering.SPM.SPMBusinessLayer
{
    public class UsersBL
    {
        public static void UpdateInsertUser(Guid userid, string name, string alias, string email, bool isAdmin, bool isActive, string modifiedBy)
        {
            UsersDL.UpdateInsertUser(userid, name, alias, email, isAdmin, isActive, modifiedBy);
        }

        public static DataSet dsSearchUser(string name, int intSearchType)
        {
            return UsersDL.dsSearchUser(name, intSearchType);
        }

        public static DataSet dsSearchUserByGuid(string strGUID)
        {
            return UsersDL.dsSearchUserByGuid(strGUID);
        }

        public static UserCDE GetUserByUserAlias(string alias)
        {
            return UsersDL.GetUserByUserAlias(alias);
        }

        public static UserCDE ValidateUser(string strUserAlias)
        {
            return UsersDL.ValidateUser(strUserAlias);
        }

        public static bool GetUserAdmin(string strUserAlias)
        {
            return UsersDL.GetUserAdmin(strUserAlias);
        }
    }
}